import { request } from '@/utils/request'
import type { CourseVideoExplainVo } from './types'
/**
 *获取课程视频讲解列表
 * @param driveType
 * @param baseType
 * @returns
 */
export const getCourseVideoExplainListApi = (driveType: string, baseType: string) => {
  return request<CourseVideoExplainVo[]>({
    url: `/api/course/video/explain/${driveType}/${baseType}`,
    method: 'GET',
  })
}
/**
 *获取课程视频讲解
 * @param id
 * @returns
 */
export const getCourseVideoExplainApi = (id: number) => {
  return request<CourseVideoExplainVo>({
    url: `/api/course/video/explain/ ${id}`,
    method: 'GET',
  })
}
